<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html>
<head>
    <title>角色form</title>
    <%@include file="../common/include.jsp" %>

    <link rel="stylesheet" href="${rc.contextPath}/plugins/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
    <script type="text/javascript" src="${rc.contextPath}/plugins/zTree/js/jquery.ztree.core.js"></script>
    <script type="text/javascript" src="${rc.contextPath}/plugins/zTree/js/jquery.ztree.excheck.js"></script>

    <script type="text/javascript" src="${rc.contextPath}/js/admin/roleForm.js"></script>

</head>
<body>
<div class="layui-container">
    <div class="layui-card">
        <div class="layui-card-body">
            <form class="layui-form" action="" method="post">
                <input type="hidden" id="roleId" name="roleId" value="${role.id}">
                <div class="layui-form-item">
                    <label class="layui-form-label">角色名称</label>
                    <div class="layui-input-block">
                        <input type="text" id="name" name="name" lay-verify="required" class="layui-input" value="${role.name}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">角色编码</label>
                    <div class="layui-input-block">
                        <input type="text" id="code" name="code" lay-verify="required" class="layui-input" value="${role.code}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block">
                        <input type="text" id="remake" name="remake" class="layui-input" value="${role.remake}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">菜单</label>
                    <div class="layui-input-block">
                        <ul id="treeDemo" class="ztree"></ul>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-filter="editRole" lay-submit>提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>
